Previous Book Contents Book Index Next

Inside Macintosh: 3D Graphics Programming With QuickDraw 3D /
Chapter 5 - Attribute Objects / Attribute Objects Reference
Attribute Objects Routines / Creating and Managing Attribute Sets


Q3AttributeSet_Inherit

You can use the Q3AttributeSet_Inherit function to configure an attribute set so that it contains all the attributes of a child set together with all the attributes inherited from a parent set.

TQ3Status Q3AttributeSet_Inherit (
TQ3AttributeSet parent, 
TQ3AttributeSet child, 
TQ3AttributeSet result);
parent
An attribute set.
child
An attribute set.
result
On entry, an attribute set. On exit, an attribute set that contains all the attributes in the specified child set together with all the attributes inherited from the specified parent set.
DESCRIPTION
The Q3AttributeSet_Inherit function returns, in the result parameter, an attribute set that merges attributes from the attribute sets specified by the child and parent parameters. The resulting set contains all the attributes in the child set together with all those in the parent set having an attribute type that is not contained in the child attribute set.

If the specified child and parent attribute sets contain any custom attribute types, Q3AttributeSet_Inherit uses the custom type's kQ3MethodTypeAttributeCopyInherit custom method. See the chapter "QuickDraw 3D Objects" for complete information on custom element types.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
11 JUL 1996